<template>
  <div class="mask" @click="hiddenMask" v-show="showMask"></div>
</template>

<script>
import bus from '../../common/js/commonVue'
export default {
  data () {
    return {
      showMask: false
    }
  },
  methods: {
    hiddenMask () {
      this.showMask = false
      bus.$emit('passShowMask', this.showMask)
    }
  }
}
</script>

<style lang="scss" scoped>
.mask {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 100000;
  background-color: rgba(0, 0, 0, 0.2);
}
</style>
